package cn.dt.ymcc.dto;

import cn.dt.ymcc.util.AssertUtil;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * 注册接收参数对象
 *
* 						regChannel:1 //注册的渠道
*/
@Data
public class RegisterDto {
    @Pattern(regexp = AssertUtil.phoneFormat,message = "手机格式不合法")
    private String mobile;
    @Size(min = 3,max = 6,message = "密码是3-6位数")
    private String password;
    @NotEmpty(message = "图形验证码不能为空")
    private String imageCode;//填入的图形验证码
    @NotEmpty(message = "短信验证码不能为空")
    private String smsCode;//客人填写的短信验证码
    private String imageCodeKey;//存储图形验证码的key
    private String registerCode;//客户填写的注册邀请码
    private Integer regChannel =1 ;
}